package bean;

import java.sql.Timestamp;

/**
 * Lucky entity. @author MyEclipse Persistence Tools
 */

public class Lucky implements java.io.Serializable {

    /** 奖品等级 */
    public static final int LEVEL_FIRST = 0;
    public static final int LEVEL_SECOND = 1;
    public static final int LEVEL_THIRD = 2;
    public static final int LEVEL_OTHER = 3;
    public static final int LEVEL_THIRD_COUNT = 5000;//三等奖数目

    /**
     * 状态
     * STATUS_DEFAULT 0 默认，抽中
     * STATUS_GET     1 已领取
     */
    public static final int STATUS_DEFAULT = 0;
    public static final int STATUS_GET = 1;
    
    // Fields

    private Integer luckyId;
    private String openId;
    private Integer level;
    private Timestamp luckyTime;
    private Integer status;
    private Integer type;

    // Constructors

    /** default constructor */
    public Lucky() {
    }

    /** full constructor */
    public Lucky(String openId, Integer level, Timestamp luckyTime,
            Integer status, Integer type) {
        this.openId = openId;
        this.level = level;
        this.luckyTime = luckyTime;
        this.status = status;
        this.type = type;
    }

    // Property accessors

    public Integer getLuckyId() {
        return this.luckyId;
    }

    public void setLuckyId(Integer luckyId) {
        this.luckyId = luckyId;
    }

    public String getOpenId() {
        return this.openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public Integer getLevel() {
        return this.level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Timestamp getLuckyTime() {
        return this.luckyTime;
    }

    public void setLuckyTime(Timestamp luckyTime) {
        this.luckyTime = luckyTime;
    }

    public Integer getStatus() {
        return this.status;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

}